the user group netusletter for October 1979 i
i__J» Jrf IflsFl
: ? !.. l; l: -J :t r-'V.r Ui.i
^ r »"i_4.il' 'i"t
8* ■ ' ji'
if wi m lis H lP^ i lii
:'*.;;' : t iij-iTr-
;..(:( i, , *. •'!
I tiff WmSfr** jsH™
'.,,. .;= '•' : ;..
j! ' ,\ i\\'-. i ' ii ;,; . h'i L n
. i-m -.i
;.■!■• I i it! ft..:
Li. I '..' } ;,.'-«. i »■-. /I* i ?
. I hi
Printed in U.S.A. M27-1079
€0fljCI€C6/ the user group newsletter for October 1979
The Graphics Tablet allows the
user to convert graphic data into
digital information that may be
processed by the Apple computer
system. Shapes traced or drawn
freehand on the tablet surface are
instantly displayed on the system
monitor. Once created, an image
may be stored on the system disk
for later retrieval and modification.
Block diagrams, architectural
renderings, logic diagrams,
schematics, mechanical shapes and
fine art are a few of the applications
of the Graphics Tablet.
The Tablet system consists of
15-1/2 inch by 15-1/2 inch tablet
(11 inch by 11 inch active surface
area), a mylar overlay stylus,
diskette software interface and
documentation. Unlike other tablet
systems, the electronics and power
supply for the Apple Graphics
Tablet are integrated with the Apple
computer. This results in a low pro-
file tablet, fewer boxes to contend
with, easier hook up, and higher
The software support package is
composed of a small assembly
language fast draw routine and the
master control software written in
Applesoft BASIC. The fast draw
routine is normally transparent to
the user. It is activated by a call
from the basic program and places
the x-y coordinate pairs received
from the interface into the data
array specified by the calling
program. Because this routine is
written in assembly language, the
system can process up to 120
coordinate pairs per second. This
means that unlike other systems,
the Apple Graphics Tablet will keep
up with the fastest hand motion.
The primary user interface is
provided by the Applesoft BASIC
utility program. Macro functions,
selected by pressing the pen on the
designated square on the tablet
overlay, provide the user with a
variety of utilities designed to
decrease the amount of time
required to complete the job.
Apple recognizes that these
standard routines may not be
optimum for every application.
Since the standard software is
written in BASIC the user may
easily replace these functions with
those written specifically for the
intended application. The standard
software package serves as an
example of the way to expand or
change the menu available on the
tablet surface. A new mylar overlay
is easily integrated into the tablet
system using the menu alignment
routine supplied with the system.
The interface provides the first
level of support for the tablet. It
relieves the user of many of the
mundane calculations often
necessary with less sophisticated
systems. Cursor following (marking
the position of the pen when it is
proximate to the tablet surface with
a cross hair cursor on the display),
0,0 coordinate origin positioning
and scaling are all done with single
commands to the interface. Only
when the interface signals pen
down is any action required of the
— 11x11 inches (280 mm x
— 15.5 x 15.5 x 1 inches
(395 mm x 395 mm x 25 mm)
Controller card size
— 7x2.75x.5 inches
(178 mm x 70 mm x 13 mm)
— 6 inches (152 mm) with 6 ft
— up to 120 coordinate pairs per
— absolute cartesian with
— sixteen-bit binary coordinate
- TTL— provided by Apple
- user selectable
Operating Modes —
Selectable from tablet menu:
- BG COLOR
- SOFT RESET
- PEN COLOR
Power requirements (supplied from
Apple power supply)
- 230 mA + 5 VDC
- 40 mA + 12 VDC
- 20 mA - 5 VDC
- 40 mA - 12 VDC
- Control program in Applesoft
- Quick draw routine in assembly
- Interface firmware in ROM
Minimum hardware requirements
- A2S1048 48K Apple II Plus or
A2S0048 Apple II with
A2B0009 Applesoft II firmware
- A2M0004 disc drive with
- Black and white or color
monitor order information
- A2M0029 from your local
(More new items from Apple on page 7.)
:■'■■■.-■'.'.■;,■.';. ;:•:;:,;■;*.■ "vv ■■■-;
FOR EDUCATORS . . .
The big news this issue is the
establishment of the Apple Educa-
tion Foundation, a not-for-profit
corporation established by Apple
Computer Inc. to further the
development of education through
microcomputer technology. The
foundation has just reviewed the
first group of applications for special
project grants, and will be announc-
ing the awards shortly.
The next deadline for submitting
applications is December 10th.
Projects that emphasize the
development of new instructional
By Roger Cutler
computing materials will receive
priority consideration. Further
details on the funding procedures
may be obtained from:
Carolyn Stauffer, Administrator
Apple Education Foundation
20605 Lazaneo Drive
Cupertino, CA 95014
EPIC, the Education Program
Information Center, is a special
department of the Foundation that
reviews and disseminates programs
for the education community.
Details can be obtained by writing
Dr. Richard Ballard, EPIC Director,
at the Foundation's address above.
(This column is written as a service to Apple
customers, and contains information on products
that we feel to be of interest to the user com-
munity. Apple Computer does not in any way
recommend these products or warrant their
suitability for use with Apple II or Apple II Plus
It MEGABYTES FOH
Remember when you got your
disk? Finally, no more stacks of
cassette tapes everywhere, no more
waiting and waiting for tapes to
load. But, since you have a disk
you've thought of a dozen new
uses for your Apple, so now you
have stacks of little disks
Well, there is a solution to your
storage problem. No, it is not a disk
filing system, although that might
help. Corvus Systems has a 10
Megabyte fixed disk for the Apple.
The system is compact, and you
can attach four of them to your
The price is $5390 for one, and
$3390 for an add-on disk.
Corvus Systems, Inc.
900 S. Winchester Blvd.
San Jose, CA 95128
SuperTalker is a peripheral
system for the APPLE II that allows
you to digitize speech, then output
high quality speech through a loud-
speaker under program control.
SuperTalker consists of three
major components: the SuperTalker
peripheral card, a microphone, and
Price is $279, assembled and
tested, FOB, Santa Cruz, CA.
For more information, please
write or call:
Mountain Hardware, Inc.
300 Harvey West Blvd.
Santa Cruz, CA 95060
A new foreground/background
system for home control called
Apple Butler gives the APPLE II
the capability of running two pro-
grams concurrently; one for the
monitor and control of systems in
your home, and one for any other
task you care to do.
The Butler provides up to 16
analog inputs for temperature, light,
moisture, or any other input data.
Up to 32 switch inputs are provided
for security or fire sensors, push
buttons, magnetic reed switches, or
on/off inputs or status indicators
from controlled devices. Up to 32
output latches are available for con-
trol of output devices.
Several control modules will be
available for the Apple Butler
system. The first will be a system to
control a solar water heater, a
solar-assisted home heating system,
a water-heating fireplace, or a com-
bination of the three. Other systems
are planned for control of automatic
swimming pool equipment,
sprinkler systems, home or com-
The Apple Butler costs $595
from your local APPLE dealer
or from Home Computer Center,
Inc., 2927 Virginia Beach,
Virginia Beach, VA 23452,
WRAPPLE YOUR APPLE
Protect your APPLE from dust,
coffee spills and idle fingers with a
WRAPPLE: a heavy duty, beige
colored, vinyl dust cover. Or get
the WRAPPLE II, a dust cover that
will cover both the computer and
one or two disk drives set on top of
the computer. The WRAPPLE is
$8.95 and the WRAPPLE II is
To order, send check or money
Henwood Enterprises, Inc.
1833 E. Crabtree Dr.
Arlington Heights, IL 60004
Or call toll-free (800) 323-7360 and
use your Master Charge, VISA or
American Express credit card.
16/ the user group newsletter for October 1979
MMSM8iS il ^ttpl^^^^^^M^^^^B^M^M^MpgffiSg§B gMMWiM^
Dann McCreary has announced
APPLE-80, an 8080 simulator and
debug package for the APPLE II.
Now any 16K or larger APPLE II
can run programs written for the
APPLE-80 executes all valid
8080 opcodes and provides single-
step, trace and run modes. All
8080 registers are displayed on the
APPLE screen and can easily be
modified. 8080 I/O port addresses
are arranged in a table for ease of
modification. Up to eight break-
points may be set to facilitate
program debugging. 6502
subroutines may be called directly
from 8080 programs and 6502
routines may be embedded in 6502
programs. Vectored interrupts are
The complete APPLE-80
package includes APPLE-80,
APPLE-80 Manual, an 8080 demo
program, and an APPLE-80
Reference Card. Priced at
$20.00 + $1.50 shipping and hand-
ling, APPLE-80 may be ordered
Box 16435 - WA
San Diego, CA 92116
California residents add 6% sales
SUPERCHIP is a firmware ROM
that plugs directly into socket DO on
your APPLE II to provide enhanced
With Superchip, your APPLE
— Graphics and text freely
mixed anywhere on the
— Full ASCII character set
including lower-case letters
— 31 additional non-ASCII
— Reversed video on both input
— Rotated characters for vertical
and upside-down printing
— Any character you can create
in an 8 x 7 dot grid
When entering program state-
ments or data, Superchip adds
single keystroke editing capabilities
to the APPLE:
— Move cursor up or down
— Clear the screen and home
— And more!
Superchip requires a minimum of
16K RAM (32K if you plan to also
use Disk II) and supports the
— Integer BASIC
— Applesoft ROM card (RAM
Applesoft is not supported)
— Printing through either the
Serial or Parallel Interface
— A Character Editor, Disk II
Interface and Text Editor are
Character Edit Cassette $19.95
Disk Interface Cassette $19.95
Word Processor Cassette $19.95
Shipping Charge (each) $ .75
2830 Walnut Hill Lane
Dallas, TX 75229
Now, all you need is a standard
#2 pencil, a card, and the new
MR-500 mark sense card reader to
quickly and easily enter data into
Here's all you have to do.
One— program the card by marking
with the pencil. Two— feed the card
into the reader slot. Three— the
reader automatically turns on, the
card is fed through, and data is
entered into memory.
The MR-500 is lightweight,
compact, and plugs right in to your
Price is $750. For details, write
Chatsworth Data Corp.
20710 Lassen Street
Chatsworth, CA 91311
EDITOR / ASSEMBLED
Software Concepts has
announced an Editor/ Assembler for
the APPLE II.
The editor can create and modify
integer BASIC, APPLESOFT, and
assembler programs. Edit features
include string search replacement,
tabbing, block line moves, simple
macros, and search windows.
The two-pass assembler can
assemble up to ten disk-based
source files and create a program
listing and standard APPLE DISK II
binary files. It uses eight character
symbols, all standard 6502 opcode
mnemonics, and has six additional
pseudo opcodes. Operands may
contain numeric parameters, sym-
bols, and arithmetic expressions.
The price is $55.00 from your
local dealer or:
P.O. Box 1112
Cupertino, CA 95015
Both Integer BASIC and
Applesoft II can manipulate the
ASCII codes for lower-case letters
in string variables, but until now
there has been no efficient way to
display the results on the screen.
The Lower Case Adapter (LCA)
solves this problem. Its features
— Plugs in with no modifications
to the APPLE. Easily removed
if warranty service is needed for
either the APPLE or the LCA
— Displays lower-case letters with
— Sample software included for
use with either BASIC
— No memory overhead as with
firmware and software methods
that utilize APPLE'S HI-RES
— Fully compatible with Disk-II
— Compatible with text editors
from Applecations Unlimited
— Compatible with most printers
that have lower-case
topple computer inc.
The Lower Case Adapter does
not interfere with any existing
features of the APPLE or any of
the standard software or firmware.
Price is $49.95. For more
information, or to order write:
P.O. Box A-133
Costa Mesa, CA 92627
or phone (714) 645-1411 after
The SRW library cases provide
minidiskette users with convenient
and efficient access to floppies in
envelopes. It is an excellent archival
storage system with optimum pro-
tection against environmental
conditions such as temperature,
excessive humidity, moisture
condensation and contaminants.
The library case is an excellent
safeguard for recorded information
during shipping and storage.
For more information, see your
local APPLE dealer or contact:
SRW Computer Components
18009-D ky Park Blvd.
Irvine, CA 92714
Looking for high-quality printing
for your Apple? Then the Escon In-
terface System may be just what
you need. By choosing one of the
four available models, you can in-
terface any Selectric to any micro
There are no permanent
modifications to make to your
Selectric and it can still be used as a
For more information, call or
Escon Products, Inc.
171 Mayhew Way, Suite 204
Pleasant Hill, CA 94523
It seems that the age of
telephone communications has
reached microcomputers. ABBS
(Apple Bulletin Board Systems) are
springing up all over. If your Apple
has communication capability (a
modem, etc.) then give one of
these numbers a yell. If you have
an ABBS, or know of one not
listed here, drop us a note so that
we can list it.
Ft. Lauderdale, FL
AKHON DIGITAL ©ROUP
COMPUTEB COMPONENTS, INC.
COMPUTER COMPONENTS, INC.
San Diego, CA
FORT WALTON BEACH
Huntington Beach, CA
MARINA DEL REY
Marina Del Rey, CA
Long Island, NY
PEOPLES' MESSAGE SYSTEM
PERIPHERALS UNLIMITED, INC.
Signal Hill, CA
PERSONAL COMPUTERS OF
San Antonio, TX
SAN FERNANDO VALLEY
Canoga Park, CA
San Francisco, CA
Some programs using HIRES
graphics require the ability to plot
on one page of graphics while
displaying the other. This really isn't
hard, in fact just a POKE will do it
for you. (Note that before this will
work you must use a HGR or an
HGR2 command to initialize
To change the page HPLOTted
to, POKE 230,32 for page 1, and
POKE 230,64 for page 2. This has
no effect on which page is
displayed, but changing that is just
as simple. POKE - 16300,0 to
display page 1, or POKE
- 16299,0 to display page 2.
16/ the user group newsletter for October 1979
DOS Update for Dual
DOS 3.2 has been shipping for
some time now and, we are happy
to report, has been remarkably bug-
free. However, DOS users with two
DISK H's on a single controller have
reported problems. These problems
usually manifested themselves as
seemingly random "DISK I/O
ERRORS." Often the copy program
would fail outright or create a
diskette that was unreadable. Since
this was a sporadic problem, it was
very difficult to track down.
What was found was that the
read/ write head was not always
where DOS thought it was.
Although DOS deselects a drive
before seeking on the other drive,
and the deselect is supposed to
shut down the drive electronics, a
filter capacitor on the drive has the
effect of keeping the drive enabled
for about 100 milliseconds after
deselect. Thus, when reading and
writing alternately to both drives,
the head of the previously accessed
drive can sometimes step itself as
much as half a track off, while the
other drive is stepping normally.
When the drive is reselected to
operate on the same track, DOS
still trusts the head to be where it
was, and this leads to the I/O er-
rors. The solution we implemented
was to wait 100 milliseconds before
seeking, when the drive is powered
up. Since powerup and seek time is
substantial compared to the 100
millisecond delay, there is no loss in
performance. Additionally, the copy
program has been changed to verify
that each track is properly
duplicated (this makes it slower but
more reliable) .
Congratulations to the lab
engineers who found this elusive
problem. Now comes the most
important part, getting this correc-
tion out to you.
To do this, we have created a
revision of DOS 3.2 entitled,
appropriately enough, DOS 3.2.1.
Your local Apple Level 1 Service
Center now has a copy of this new
release which works with both the
Standard (Integer) and Plus
(Applesoft) versions. It contains
revised versions of the following:
1. DOS 3.2.1
2. Update 3.2.1
We suggest that Apple users
operating two disks on the same
controller obtain this version. For
users with one disk, or with disks
on separate controllers, there is no
problem, and therefore, no need to
get the change.
To get your current DOS 3.2
Diskette updated to 3.2.1, simply
bring it to your local Level 1
Service Center (Note: you must
bring the original master diskette,
the one with the Apple DOS Label
on it.) The Dealer will process your
diskette, updating it with the
versions listed above, and return it
to you. Every effort will be made to
do this within 24 hours of the time
you bring it in. That's all there is to
it. In the event that there is no con-
venient way for you to get your
diskette to your Dealer's Service
Center, you may mail it (be sure to
pack it securely) to our Cupertino
Service Facility. The address is:
Apple Computer Service,
20605 Lazaneo Drive,
Cupertino, California 95014,
Attention: DOS Update.
The updated disk will be mailed
back as soon as possible.
Note: Nothing in this revision
changes the documentation in the
DOS 3.2 — Do's and Don'ts of
DOS manual (A2L0012). It's still
current and will remain current for
any 3.2 series DOS release.
In CONTACT 4 we gave you an
incorrect telephone number for
Interactive Structures, Inc., the peo-
ple who make an analog input card
for the APPLE II. The correct
number is (215) 382-8296.
A couple of the Local User
Groups listed in CONTACT 5 were
wrong. They should be:
MARYLAND APPLE II USERS
Computer Unlimited, Inc.
907 York Road
Towson, MD 21204
WISCONSIN APPLE USERS
c/o Cybernetic Mechanism
P.O. Box 11463
Milwaukee, WI 53211
Here is the new list of latest
APPLE II User Groups. If we still
don't have your group in our
files, write or call us.
APPLE BRITISH COLUMBIA
2922 East 25 Ave.
APPLE USERS GROUP
1815 Ygnacio Valley Rd.
Walnut Creek, CA 94596
4 West Mission St.
Santa Barbara, CA 93101
toppta* computer mc.
CAROLINA APPLE CORE
5212 Inglewood Ln.
Raleigh, NC 27609
55 Pardee Place
New Haven, CN 06515
(203) 562-4907 (work)
(203) 397-1407 (home)
MIAMI APPLE USERS GROUP
c/o David Hall, Sec.
2300 N.W. 135th St.
Miami, FL 33167
THE APPLE COMPUTER
671 NE 56th Street
Fort Lauderdale, FL 33334
10049 Santa Fe Dr.
Overland Park, KS 66212
(Last Wed. each month)
(BATON ROUGE APPLE NETWORK
OF COMPUTER HOBBYISTS)
4661 Tupello St.
Baton Rouge, LA 70808
THE MICHIGAN APPLE
32905 W. 12 Mile Rd. Suite 320
Farmington Hills, MI 48018
c/o Odel Small
St. Louis, MO 63130
MICRO & PERSONAL COMPUTER
CLUB OF ST. LOUIS
12304 Manchester Rd.
St. Louis, MO 63131
THE MID HUDSON APPLE CORE
ASD Office Systems
Rt. 55 — Vanwyck Plaza
Poughkeepsie, NY 12603
APPLE BYTER'S CORP.
Buffalo Saving Bank
3980 Sheridan Dr.
Amherst, NY 14226
(3rd Fri. each month)
APPLE USERS GROUP
c/o Computer Encounter
2 Nassau St.
Princeton, NJ 08540
DAYTON AREA APPLE USERS GROUP
c/o Computer Solutions
1932 Brown Street
Dayton, OH 45409
THE COMPUTER HOUSE
1000 Greentree Rd.
Pittsburgh, PA 15220
S.E. VIRGINIA APPLE ORCHARD
George Guild Jr.
117 Cardinal Drive
Hampton, VA 23664
(804) 850-0626 (home)
(804) 764-7081 (work)
ADAM & EVE, APPLE II USERS' GROUP
IIS. Handcock St.
Madison, WI 53703
WHATS MEW, APPLE?
APPLE WRlTEMs A Mew
Way to Write from Apple
Discover Apple Computer's new
way to be more creative and effi-
cient at practically anything you
write. The Apple Writer uses all the
advantages of the Apple computer
and that saves you time. This new
product accomplishes typographical
error correction, file editing and
document revisions quickly with
minimal effort. That's important to
any creative thinker.
By entering text on the keyboard
of the Apple Computer, you see it
displayed on the monitor. Easy
retrieval of your files from the
diskettes, allows for effortless text
corrections or revisions.
Character-oriented rather than
line-oriented text editing permits
Editing feature permits three
methods of deletion of text (char-
acter, word and paragraph) and
two methods of insertion of text
(character and file) . Cursor Control
Mode allows easy movement
throughout the text. Moves blocks
of text within a document, two easy
Stores documents easily on
floppy disks with up to 95 pages of
text per diskette. Any length docu-
ment can be printed using the load
and continue printing feature.
Allows partial documents to be
saved to separate disk files, and
recalled later for insertion into other
Printer Commands include: left
or right justify, fill-justify or center-
ing. Also sets left, right, top and
bottom margins; line length of
page, line spacing, page numbering
and page heading. Many of these
commands may be embedded on
your text allowing dynamic format-
Recovers automatically from
system errors to protect documents.
Permits check of length of
unused working file space (docu-
ment in memory) .
Permits use of DOS commands
from editor, allowing you to catalog
or delete files stored on diskette.
Has Global search and replace,
allowing replacement of any
characters or words throughout a
Displays up to 24 lines of 40
characters of text, with upper case
shown as inverse characters.
Apple II or Apple II Plus with 48K
One Disk II required (second drive
Monitor or TV Screen
Apple Writer has too many
features to explain here. Ask your
dealer for a demonstration. Sug-
gested Retail Price is $75.00.
aK^Wa^^^^^^M^^^^MiM^ffig^^Ml^^^^MMI^^BI^W^^^^^^^^^^ ^ ^^^^^^^g^^^^^M^MM^^^M^^MW W
COMKC6/ the user group newsletter for October 1979
Dollars and Cents
This program (and the subroutine at lines 2000
through 2060) will format your numeric output into a
"Dollars and Cents" format. It's simple and fairly fast.
An advantage to using this subroutine is that it does
very little string manipulation. This means that the
dreaded "garbage collection" will occur less often than
with other methods!
LET N r
=2: REM SET NUMBER
LET S *
* 5: REM SET FIELD
FOR X ■
* - 5 TO 5 STEP . 501
PRINT X. "*">
REM THIS IS THE FORMATTING
REM SUBROUTINE. THE INPUT
REM IS 'X', 'N', AND 'S'
IS THE NUMBER TO BE
IS THE NUMBER OF
DIGITS RIGHT OF '. '
IS THE WIDTH OF THE
X$ = "
" + STRf ( INT (X *
10 '•• N
+ . 5) )
2010 Q « LEN (X*) - ( VAL <X*) <
2020 PRINT SPC( S - Q * <Q > N -
1)-(N+2>*(Q< ~ N + 1
2030 PRINT MID* (X*, 1 + ( VAL (
X*) < 0), (0 < ■■■■■ N) + (Q - N
) * ( Q > N ) > i
2040 PRINT MID* ("0. 00", 1 + <<N
+ 1 ) < Q ) , 1 + ( N - Q + 2 ) *
< Q < N + 2 ) ) ;
2050 PRINT RIGHT* ( X$, N * <Q >
N) + <Q-1)*<Q< = N ) > J
Here is another GC (garbage collection) forestaller
with some nice additional benefits. It allows you to
enter commas, quotes and colons into Applesoft
without getting an "EXTRA IGNORED" error for your
efforts and works just as well for either keyboard or
disk input. Here's what it does.
— Line 100 defines a string variable at a known
memory location. (This name can be anything you
wish. We just happened to use IN$.)
— Lines 220-290 poke a short machine language
routine into page 3 of your Apple's memory. This
routine changes the pointer to the string in memory to
point at the Input Buffer ($200) .
— Line 350 calls the new input routine and the MID$
function moves a copy of the new string into main
memory so that it isn't overwritten by the next input.
Here's a cute trick for using this routine with random
access disk files. Say your program is reading a file for
the third field in each record. Using this routine, the
syntax for that would be:
CALL 768: CALL 768: CALL 768: IN$ = MID$(IN$,1)
The first two calls are dummy INPUTs but, unlike
the normal DOS "INPUT IN$" command, perform no
Try it. You'll like it.
3 LI ST
LET IN* = "X"
TEXT : HOME
REM THE FIRST VARIABLE
REM DEFINED MUST BE A STRING
THIS STRING WILL. REG
INPUT FROM THE CALL
wtcippki computer inc.
REM THIS POKES THE INPUT
REM SIMULATOR ROUTINE
REM INTO MEMORY. . .
FOR J - 768 TO 788
POKE J, I
DATA 138, 145, 105, 200, 169,
DATA 145, 105, 200, 169, 2, 145
DATA 105, 96
REM NOW TO USE IT!
PRINT "TYPE IN ANY CHARACTER
S YOU WISH: "
CALL 768; IN* = MID* ( IN*, 1 >
IS AN "INPUT IN*"
PRINT "AND HERE'S WHAT YOU T
YPED IN: "
PRINT : PRINT IN*
PRINT "NOTE THAT EVEN QUOTES
, COMMAS AND"
PRINT "COLONS GET THROUGH UN
PRINT : PRINT "NOW LET'S WR I
TE IT TO THE DISK. "
CHR* (4) "OPEN TEMP"
CHR* (4) "WRITE TEMP"
CHR* (4) "CLOSE"
: PRINT "AND READ IT
ACK IN. ■ . "
LET IN* = " "
PRINT CHR* <4)"0PEN TEMP"
PRINT CHR* (4) "READ TEMP"
CALL 768: IN* = MID* ( IN*, 1 )
CHR* <4) "CLOSE"
PRINT "TA-DAA! ! ":
Restore to Line Number
We've had some questions from people asking how
to do a RESTORE statement to a particular line
number. It's really not too difficult. The next program is
a quick demonstration of how to do this.
1 DATA ONE
2 DATA TWO
3 DATA THREE
4 DATA FOUR
5 DATA FIVE
6 DATA SIX
7 DATA SEVEN
8 DATA EIGHT
9 DATA NINE
11 REM THESE ARE THE DATA LINES
1000 REM THESE POKES ENTER THE
1010 REM RESTORE PROGRAM INTO
1020 REM MEMORY
1030 POKE 768,201: POKE 769,82: POKE
770,208: POKE 771,38: POKE 7
72,32: POKE 773,177: POKE 77
4,0: POKE 775,32: POKE 776,1
1040 POKE 777,221: POKE 778, 32: POKE
779,82: POKE 780,231: POKE 7
81,32: POKE 782,26: POKE 783
,214: POKE 784,144: POKE 785
1050 POKE 786, 160:
1070 POKE 804, 32:
806, 216: POKE
08, 166: POKE
POKE 787, 4: POKE
789, 155: POKE
791, 131: POKE
793,3: POKE 79
POKE 802,233: POKE
POKE 805,80: POKE
807, 76: POKE S
809, 217: POKE 8
REM THESE POKES SET '&' TO
REM JUMP TO THE RESTORE
POKE 1013,76: POKE 1014,0:
REM THESE POKES ENTER THE
REM ONERR FIX FROM PAGE 82
REM INTO MEMORY
POKE 810,104: POKE 811,168
POKE 812, 104: POKE 813, 166
POKE 814,223: POKE 815,154
POKE 816,72: POKE 817,72:
eeissce^/ the user group newsletter for October 1979
1 1 icippte oosmpuixsr inc.
818,152: POKE 819,72: POKE 8
REM SET UP QNERR AND START
REM THE MAIN PROGRAM
ONERR GOTO 3030
INPUT "WHICH LINE DO YOU WA
NT ?"; LN
REM LINE 1130 IS DOES A
REM 'RESTORE TO LINE LN '
PRINT "AND THE DATA IS. . . "
GOTO 2050: REM DO IT AGAIN
REM ERROR HANDLER
REM '%■.' ALONE EXECUTES THE
REM ONERR FIX
IF PEEK (222) » 90 THEN PRINT
: PRINT "THAT'S NOT A DATA L
INE!"; CHR* <7): & : GOTO 20
REM THIS IS FOR
REM UNDEFINED STATEMENT
IF PEEK (222) = 254 THEN PRINT
: PRINT "TRY TYPING A NUMBER
!"; CHR$ (.7): ?y. : GOTO 2050
REM THIS IS FOR
REM BAD RESPONSE TO INPUT
REM IF NOT ONE OF THE
REM ABOVE ERRORS THEN END
What's In This System,
This last program (CONFIG) , does a quick look at
the machine language code, if any, located in your
Apple's I/O slots. Since this code is different for each
peripheral, it's possible to tell just what interface card is
in a particular slot.
The bytes being read are $Cn05 and $Cn07, where
n is the slot number. For instance, these bytes both
contain $48 (72 decimal) for an Apple Parallel Printer
THIS PROGRAM FIGURES
OUT WHAT CARDS YOUR
APPLE HAS IN WHICH
THIS IS DONE BY THE
PROGRAM LOOKING AT
THE CODE IN AN ON-
BOARD ROM AND DOING
A QUICK CHECK ON A
HOME : PRINT : PRINT
SYSTEM CONFIGURATION (
DIM 85(4) i S7(4): DISK « 1 : COM
= 2: SERIAL = 3: PTR = 4
DATA 3, 60, 24, 56, 56, 24, 72, 72
FOR I '« DISK TO PTR: READ 55
LET NA*(DISK) - "DISK CONTRO
LET NA*(COM) = "COMMUNICATIONS"
LET MA* (SERIAL) « "H. S. SER
LET NA*(PTR) » "PARALLEL PR I
CI 00 = 49408
C700 = 50944
S - C100 TO C700 STEP 256
K ~ TO 2
TO 255 STEP 8
~ CS(K) + PEEK (S
NEXT : NEXT
IF CS<0) <
< > CS(2)
CS<0) < 256
/ 256" HAS
FOR I « DISK
IF PEEK (S
> CS(1) OR CSU)
OR CS(2) < 256 OR
OR CS<1) < 256 THEN
5) = 85(1)
PEEK (S + 7) =
" "NA*(I ); : I ~
IF I = 5 THEN
PRINT " CARD":
PRINT "SLOT NO.
PRINT "N UNKN
"<S - 49152)